<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			div{
				display: none;
			}
			.show{
				height: 200px;
				width:200px;
				background-color: darkcyan;
				border: 10px solid red;
				display: block;
			}
			.hide{
				display: none;
			}
		</style>
		<script>
			function showPic(){
				/* document.getElementById("d1").style.display="block";
				document.getElementById("d1").style.height="300px";
				document.getElementById("d1").style.width="200px";
				document.getElementById("d1").style.border="10px double green";
				 */
				document.getElementById("d1").className="show";
			}
			function hidePic(){
				document.getElementById("d1").className="hide";
				//document.getElementById("d1").style.display="none";
			}
		</script>
	</head>
	<body>
		<h1 onmouseover="showPic()" onmouseout="hidePic()">图片</h1>
		<div id="d1">
			<img src="../images/book-03.jpg"/>
		</div>
	</body>
</html>
